package cosmonaut;

import processing.core.*; 

public class Zoog extends PApplet {

	public void setup() {
		// Set the size of the window
		size(200, 200);
	}

	public void draw() {
		// Draw a white background
		background(255);   

		// Set ellipses and rects to CENTER mode
		ellipseMode(CENTER);
		rectMode(CENTER);
		
		// Draw Zoog’s body
		stroke(0);
		fill(150);
		rect(100,100,20,100);
		
		// Draw Zoog’s head
		fill(255);
		ellipse(100,70,60,60);
		
		// Draw Zoog’s eyes
		fill(0);
		ellipse(81,70,16,32);
		ellipse(119,70,16,32);
		
		// Draw Zoog’s legs
		stroke(0);
		line(90,150,80,160);
		line(110,150,120,160);
	}

	public int sketchWidth() { return 640; }
	public int sketchHeight() { return 360; }
	public String sketchRenderer() {
		  return "processing.core.PGraphicsJava2D2X";
		}
	static public void main(String[] passedArgs) {
		String[] appletArgs = new String[] { "cosmonaut.Zoog" };
		if (passedArgs != null) {
			PApplet.main(concat(appletArgs, passedArgs));
		} else {
			PApplet.main(appletArgs);
		}
	}
}
